//TODO a(53)
function a53(module, exports, a) {
    var i = a(23), s = a(3), r = a(21), n = a(2), o = function (e) {
        this.contDom = e.dom.cont, this.parentEl = e.dom.parentEl, this.coreVideo = e.coreVideo
    };
    s.extend(o, i);
    var l = {
        init: function () {
            this.playerData = this.manager.playerData, this.nodes = {
                fullBtn: this.parentEl.find(".hv_ico_screen"),
                pannel: this.parentEl.find(".js-pannel")
            }, "PC" == this.playerData.interactiveType ? this.nodes.fullBtn.on("click", this.onFullBtnClick, this) : this.nodes.fullBtn.on("touchend", this.onFullBtnClick, this), "base" == this.playerData.tplType && (this.nodes.pannel.on("gesturestart", function (e) {
                e.preventDefault(), e.stopPropagation()
            }, this), this.nodes.pannel.on("gestureend", this.onGetsure, this)), this.manager.listener.on(r.FULLSCREEN_STATE, function (e, t) {
                0 == t ? this.nodes.fullBtn.removeClass("hv_ico_allscreen") : this.nodes.fullBtn.addClass("hv_ico_allscreen")
            }, this), this.addEvent()
        }, addEvent: function () {
            "base" == this.playerData.tplType && this.manager.evt.on(r.EVENT.RESIZE, this.onResize, this)
        }, onResize: function () {
            this.nodes.fullBtn[0].style.display = this.contDom.width() > 310 ? "block" : "none"
        }, onFullBtnClick: function (e) {
            e.preventDefault();
            var t = 0 == this.manager.listener.get(r.FULLSCREEN_STATE) ? 1 : 0;
            1 == t && (n.isPC || "lepai" == this.playerData.pname && n.ipad) && (t = 2), this.manager.evt.trigger(r.EVENT.PLAYER_COMMAND, "changFullScreen", t, !0)
        }, onGetsure: function (e) {
            e.preventDefault();
            var t, a = this.manager.listener.get(r.FULLSCREEN_STATE);
            e.scale > 1 ? 0 == a ? t = 1 : 1 == a && (t = 2) : t = 0, this.manager.evt.trigger(r.EVENT.PLAYER_COMMAND, "changFullScreen", t, !0)
        }
    };
    s.merge(o.prototype, l), module.exports = o
}
